﻿using System;

namespace Labthink.PCSoft.UniversalHost4.Instrument.Model
{
    public class CupParam:ICloneable
    {
        /// <summary>
        /// 试验类型
        /// 10033
        /// </summary>
        public int TestType { get; set; } = 1;
        /// <summary>
        /// 试验杯号
        /// 10040
        /// </summary>
        // ReSharper disable once InconsistentNaming
        public int CupNO { get; set; }
        /// <summary>
        /// 试验名称
        /// 10069
        /// </summary>
        public string TestName { get; set; }
      
        /// <summary>
        /// 试样名称
        /// 10070
        /// </summary>
        public string SampleName { get; set; }
        /// <summary>
        /// 试样材料
        /// 10071
        /// </summary>
        public string SampleMaterial { get; set; }
        /// <summary>
        /// 试样编号
        /// 10072
        /// </summary>
        // ReSharper disable once InconsistentNaming
        public string SampleNO { get; set; }
        /// <summary>
        /// 试样批次
        /// 10081
        /// </summary>
        public string SampleBatch { get; set; }
        /// <summary>
        /// 送检机构
        /// 10079
        /// </summary>
        public string InspOrga { get; set; }
        /// <summary>
        /// 试样厂商
        /// </summary>
        public string Manufacturer { get; set; }
      

        //public void CopyFrom(CupParam cp)
        //{
        //    InspOrg = cp.InspOrg;
        //    SampleBatch = cp.SampleBatch;
        //    SampleMaterial = cp.SampleMaterial;
        //    SampleName = cp.SampleName;
        //    SampleNo = cp.SampleNo;
        //    SampleSide = cp.SampleSide;
        //    SpecProvider = cp.SpecProvider;
        //    TestName = cp.TestName;
        //    SampleThickness = cp.SampleThickness;
        //    TestType = cp.TestType;
        //}

        public object Clone()
        {
            var cp = new CupParam();
            cp.InspOrga = InspOrga;
            cp.SampleBatch = SampleBatch;
            cp.SampleMaterial = SampleMaterial;
            cp.SampleName = SampleName;
            cp.SampleNO = SampleNO;
            cp.Manufacturer = Manufacturer;
            cp.TestName = TestName;
            cp.TestType = TestType;
            cp.CupNO = CupNO;
            return cp;
        }
    }
}
